package com.yonyou.iuap.shell.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.yonyou.iuap.base.dao.IKmBaseDao;
import com.yonyou.iuap.persistence.mybatis.anotation.MyBatisRepository;
import com.yonyou.iuap.shell.entity.exp.KmCommentBasePoJo;
import com.yonyou.iuap.shell.entity.exp.KmCommentEntityVo;
import com.yonyou.iuap.shell.pub.IShellDaoEnum;
import com.yonyou.iuap.shell.pub.RequestDto;


/**
 * 
 * KmCommentEntityDao数据库操作接口类
 * 
 **/
@MyBatisRepository
@Repository(IShellDaoEnum.Shell_Dao_Comment)
public interface KmCommentEntityDao<T> extends IKmBaseDao<T>{

	/**
	 * 查询评论接口
	 * @param param
	 * @return
	 */
	public List<KmCommentBasePoJo> queryComment(Map<String, Object> param);
	
	/**
	 * 查询回复
	 * @param param
	 * @return
	 */
	public List<KmCommentBasePoJo> queryAnwser(Map<String, Object> param);
	
	/**
	 * 根据评论pk查询评论
	 * @param param
	 * @return
	 */
	public List<KmCommentBasePoJo> queryOneComment(Map<String, Object> param);
	
	/**
	 * 查询评论数量
	 * @param param
	 * @return
	 */
	public int queryCommentCount(Map<String, Object> param);
	
	/**
	 * 获取等待回复评论
	 * @return  List<KmCommentEntity>
	 */
	public List<KmCommentEntityVo> getNotCommentList(RequestDto red);
	
	/**
	 * 获取等待回复评论总条数
	 * @return  
	 */
	public int getNotCommentCount(RequestDto red);
}